<?php

class TestController extends CController {

    public function actionTest()
    {
        $admin = new Admin();

        $admin->onChange = function($event)
        {
            var_dump($event->sender);
        };

        $admin->onChange();
    }
}